package com.sharding.demo.domain.service.impl;

import com.sharding.demo.domain.entity.TOrder;
import com.sharding.demo.domain.mapper.TOrderMapper;
import com.sharding.demo.domain.service.TOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TOrderServiceImpl implements TOrderService {

    @Resource
    private TOrderMapper tOrderMapper;


    @Override
    public int insert(TOrder order) {
        return tOrderMapper.insert(order);
    }

    @Override
    public TOrder getTOrder(Long orderId) {
        return tOrderMapper.selectByPrimaryKey(orderId);
    }
}
